package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.example.demo.domain.User;

@Mapper
public interface UserMapper {
	int insertUser(User user);
	List<User> selectUsers();
	User selectUserByUsername(User user);
	User selectUserByEmail(User user);
	List<User> selectFriend(User user);//查找好友，通过user的uid(user_friend表中的uid1或者uid2)
	List<User> selectFollow(User user);//查找user关注的人，通过user的uid(user_follow中的uid1)
	List<User> selectBeFollowed(User user);//查找关注了user的人，通过user的uid(user_follow中的uid2)
	User selectUserByUid(Integer uid);
}
